package cn.smxy.ln.config;

import com.netflix.loadbalancer.IRule;
import com.netflix.loadbalancer.RandomRule;
import com.netflix.loadbalancer.RoundRobinRule;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author ln
 * @date 2022年05月20日 21:05
 */
@Configuration
public class ConfigBean {
    @Bean
    public IRule myRule() {
        return new RoundRobinRule();
    }
}
